.class public final Lnbisdk/kn;
.super Lnbisdk/au;


# instance fields
.field private density:F

.field private pA:F

.field private pB:I

.field private pC:Z

.field private pD:I

.field private pE:I

.field public px:Lcom/nbi/map/android/Pin;

.field private py:[I

.field private pz:F


# direct methods
.method public constructor <init>(Lcom/nbi/map/android/Pin;)V
    .locals 1

    const/4 v0, 0x1

    invoke-direct {p0, v0}, Lnbisdk/au;-><init>(I)V

    const/4 v0, 0x2

    new-array v0, v0, [I

    iput-object v0, p0, Lnbisdk/kn;->py:[I

    const/4 v0, 0x0

    iput-boolean v0, p0, Lnbisdk/kn;->pC:Z

    iput-object p1, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    return-void
.end method

.method private static a(Ljava/lang/String;IFZ)Ljava/lang/String;
    .locals 6

    const/4 v5, 0x0

    const/4 v4, 0x0

    const/4 v3, 0x1

    new-instance v0, Landroid/graphics/Paint;

    invoke-direct {v0}, Landroid/graphics/Paint;-><init>()V

    const/high16 v1, -0x100

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setColor(I)V

    if-eqz p3, :cond_0

    sget-object v1, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    :goto_0
    invoke-virtual {v0, p2}, Landroid/graphics/Paint;->setTextSize(F)V

    invoke-virtual {v0, v3}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    int-to-float v1, p1

    invoke-virtual {v0, p0, v3, v1, v5}, Landroid/graphics/Paint;->breakText(Ljava/lang/String;ZF[F)I

    move-result v1

    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v2

    if-ge v1, v2, :cond_1

    new-array v1, v3, [F

    const-string v2, "."

    invoke-virtual {v0, v2, v1}, Landroid/graphics/Paint;->getTextWidths(Ljava/lang/String;[F)I

    aget v1, v1, v4

    const/high16 v2, 0x4040

    mul-float/2addr v1, v2

    float-to-int v1, v1

    sub-int v1, p1, v1

    int-to-float v1, v1

    invoke-virtual {v0, p0, v3, v1, v5}, Landroid/graphics/Paint;->breakText(Ljava/lang/String;ZF[F)I

    move-result v0

    invoke-virtual {p0, v4, v0}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, "..."

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_1
    return-object v0

    :cond_0
    sget-object v1, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v0, v1}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    goto :goto_0

    :cond_1
    move-object v0, p0

    goto :goto_1
.end method

.method private a(Lnbisdk/lf;[I)V
    .locals 10

    const/4 v1, -0x1

    const/4 v9, 0x1

    const/4 v8, 0x0

    invoke-virtual {p1}, Lnbisdk/lf;->aE()Lnbisdk/co;

    move-result-object v7

    invoke-virtual {v7}, Lnbisdk/co;->fa()Z

    move-result v0

    if-eqz v0, :cond_5

    invoke-virtual {p1}, Lnbisdk/lf;->ai()Lnbisdk/kr;

    move-result-object v0

    check-cast v0, Lnbisdk/hf;

    const/4 v1, 0x2

    new-array v1, v1, [I

    invoke-virtual {v0, v1}, Lnbisdk/hf;->a([I)V

    aget v2, v1, v8

    iget-object v3, p0, Lnbisdk/kn;->xv:[I

    aget v3, v3, v8

    if-ne v2, v3, :cond_0

    aget v2, v1, v9

    iget-object v3, p0, Lnbisdk/kn;->xv:[I

    aget v3, v3, v9

    if-eq v2, v3, :cond_1

    :cond_0
    iput-boolean v8, p0, Lnbisdk/kn;->xs:Z

    iget-object v2, p0, Lnbisdk/kn;->xv:[I

    aget v3, v1, v8

    aput v3, v2, v8

    iget-object v2, p0, Lnbisdk/kn;->xv:[I

    aget v1, v1, v9

    aput v1, v2, v9

    :cond_1
    iget-boolean v1, p0, Lnbisdk/kn;->xs:Z

    if-nez v1, :cond_2

    iput-boolean v9, p0, Lnbisdk/kn;->xs:Z

    invoke-virtual {p0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    iget-object v5, p0, Lnbisdk/kn;->xt:[I

    iget-object v6, p0, Lnbisdk/kn;->xu:[I

    invoke-virtual/range {v0 .. v6}, Lnbisdk/hf;->a(DD[I[I)V

    :cond_2
    iget-object v0, p0, Lnbisdk/kn;->xu:[I

    aget v0, v0, v8

    aput v0, p2, v8

    iget-object v0, p0, Lnbisdk/kn;->xu:[I

    aget v0, v0, v9

    aput v0, p2, v9

    iget-object v0, p0, Lnbisdk/kn;->xt:[I

    aget v0, v0, v8

    iget-object v1, p0, Lnbisdk/kn;->xu:[I

    aget v1, v1, v8

    if-ne v0, v1, :cond_3

    iget-object v0, p0, Lnbisdk/kn;->xt:[I

    aget v0, v0, v9

    iget-object v1, p0, Lnbisdk/kn;->xu:[I

    aget v1, v1, v9

    if-eq v0, v1, :cond_4

    :cond_3
    if-eqz v7, :cond_4

    invoke-virtual {v7}, Lnbisdk/co;->fi()F

    move-result v0

    iget-object v1, p0, Lnbisdk/kn;->xt:[I

    aget v1, v1, v8

    iget-object v2, p0, Lnbisdk/kn;->xu:[I

    aget v2, v2, v8

    iget-object v3, p0, Lnbisdk/kn;->xt:[I

    aget v3, v3, v8

    sub-int/2addr v2, v3

    int-to-float v2, v2

    mul-float/2addr v2, v0

    float-to-int v2, v2

    add-int/2addr v1, v2

    aput v1, p2, v8

    iget-object v1, p0, Lnbisdk/kn;->xt:[I

    aget v1, v1, v9

    iget-object v2, p0, Lnbisdk/kn;->xu:[I

    aget v2, v2, v9

    iget-object v3, p0, Lnbisdk/kn;->xt:[I

    aget v3, v3, v9

    sub-int/2addr v2, v3

    int-to-float v2, v2

    mul-float/2addr v0, v2

    float-to-int v0, v0

    add-int/2addr v0, v1

    aput v0, p2, v9

    :cond_4
    :goto_0
    return-void

    :cond_5
    iput-boolean v8, p0, Lnbisdk/kn;->xs:Z

    iget-object v0, p0, Lnbisdk/kn;->xv:[I

    aput v1, v0, v8

    iget-object v0, p0, Lnbisdk/kn;->xv:[I

    aput v1, v0, v9

    invoke-virtual {p0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    move-object v0, p0

    move-object v5, p1

    move-object v6, p2

    invoke-virtual/range {v0 .. v6}, Lnbisdk/kn;->a(DDLnbisdk/lf;[I)V

    goto :goto_0
.end method

.method private f(Landroid/content/Context;)V
    .locals 2

    invoke-virtual {p1}, Landroid/content/Context;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getDisplayMetrics()Landroid/util/DisplayMetrics;

    move-result-object v0

    iget v0, v0, Landroid/util/DisplayMetrics;->density:F

    iput v0, p0, Lnbisdk/kn;->density:F

    const/high16 v0, 0x4190

    iget v1, p0, Lnbisdk/kn;->density:F

    mul-float/2addr v0, v1

    iput v0, p0, Lnbisdk/kn;->pz:F

    const/high16 v0, 0x4140

    iget v1, p0, Lnbisdk/kn;->density:F

    mul-float/2addr v0, v1

    iput v0, p0, Lnbisdk/kn;->pA:F

    const/high16 v0, 0x40e0

    iget v1, p0, Lnbisdk/kn;->density:F

    mul-float/2addr v0, v1

    float-to-int v0, v0

    iput v0, p0, Lnbisdk/kn;->pB:I

    return-void
.end method


# virtual methods
.method public final a(Landroid/graphics/Canvas;Lcom/nbi/map/data/Rectangle;Lnbisdk/lf;Z)V
    .locals 1

    const/4 v0, 0x0

    invoke-virtual {p0, p1, p3, v0, v0}, Lnbisdk/kn;->a(Landroid/graphics/Canvas;Lnbisdk/lf;II)V

    return-void
.end method

.method public final a(Landroid/graphics/Canvas;Lnbisdk/lf;II)V
    .locals 19

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->py:[I

    move-object v5, v0

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move-object v2, v5

    invoke-direct {v0, v1, v2}, Lnbisdk/kn;->a(Lnbisdk/lf;[I)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v5, v0

    invoke-virtual {v5}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v5

    if-eqz v5, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->py:[I

    move-object v6, v0

    const/4 v7, 0x0

    aget v6, v6, v7

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v7

    sub-int/2addr v6, v7

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->py:[I

    move-object v7, v0

    const/4 v8, 0x1

    aget v7, v7, v8

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v8

    sub-int/2addr v7, v8

    add-int v7, v7, p4

    invoke-virtual/range {p2 .. p2}, Lnbisdk/lf;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v8

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    invoke-virtual {v0, v1}, Lnbisdk/kn;->b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;

    move-result-object v9

    invoke-virtual {v9, v8}, Lcom/nbi/map/data/Rectangle;->intersects(Lcom/nbi/map/data/Rectangle;)Z

    move-result v10

    if-eqz v10, :cond_1

    const/4 v8, 0x1

    :goto_0
    if-eqz v8, :cond_0

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v5

    if-eqz v5, :cond_0

    int-to-float v6, v6

    int-to-float v7, v7

    const/4 v8, 0x0

    move-object/from16 v0, p1

    move-object v1, v5

    move v2, v6

    move v3, v7

    move-object v4, v8

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lnbisdk/au;->xr:Z

    move v6, v0

    if-eqz v6, :cond_0

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    const/4 v5, 0x0

    invoke-static {v5}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v5

    const/4 v6, 0x2

    invoke-static {v6}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v6

    const/4 v7, 0x3

    invoke-static {v7}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v7

    const/4 v8, 0x1

    invoke-static {v8}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v8

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v9, v0

    invoke-virtual {v9}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v9

    new-instance v10, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v10}, Lcom/nbi/map/data/Rectangle;-><init>()V

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move-object v2, v10

    invoke-virtual {v0, v1, v2}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    move-object/from16 v0, p0

    iget-boolean v0, v0, Lnbisdk/kn;->pC:Z

    move v11, v0

    if-eqz v11, :cond_3

    invoke-virtual/range {p2 .. p2}, Lnbisdk/lf;->ia()Lnbisdk/lf;

    move-result-object v5

    invoke-virtual {v5}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v5

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/au;->xq:I

    move v6, v0

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pD:I

    move v7, v0

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pE:I

    move v8, v0

    move-object v0, v5

    move-object/from16 v1, p1

    move v2, v6

    move v3, v7

    move v4, v8

    invoke-interface {v0, v1, v2, v3, v4}, Lnbisdk/no;->a(Landroid/graphics/Canvas;III)V

    :cond_0
    :goto_1
    return-void

    :cond_1
    move-object/from16 v0, p0

    iget-boolean v0, v0, Lnbisdk/au;->xr:Z

    move v10, v0

    if-eqz v10, :cond_2

    move-object/from16 v0, p0

    move-object/from16 v1, p2

    move-object v2, v9

    invoke-virtual {v0, v1, v2}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    invoke-virtual {v9, v8}, Lcom/nbi/map/data/Rectangle;->intersects(Lcom/nbi/map/data/Rectangle;)Z

    move-result v8

    if-eqz v8, :cond_2

    const/4 v8, 0x1

    goto/16 :goto_0

    :cond_2
    const/4 v8, 0x0

    goto/16 :goto_0

    :cond_3
    invoke-virtual {v10}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v11

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v12

    invoke-virtual {v10}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v13

    int-to-float v13, v13

    int-to-float v14, v11

    const/4 v15, 0x0

    move-object/from16 v0, p1

    move-object v1, v12

    move v2, v13

    move v3, v14

    move-object v4, v15

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    invoke-virtual {v10}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v12

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v13

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v13

    add-int/2addr v12, v13

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->py:[I

    move-object v13, v0

    const/4 v14, 0x0

    aget v13, v13, v14

    invoke-virtual {v9}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v14

    add-int/2addr v13, v14

    invoke-virtual {v7}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v14

    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v14

    div-int/lit8 v14, v14, 0x2

    sub-int/2addr v13, v14

    invoke-virtual {v9}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v9

    sub-int v9, v13, v9

    invoke-virtual {v8}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v13

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v13

    move v14, v12

    :goto_2
    if-ge v14, v9, :cond_4

    invoke-virtual {v8}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v15

    move v0, v14

    int-to-float v0, v0

    move/from16 v16, v0

    move v0, v11

    int-to-float v0, v0

    move/from16 v17, v0

    const/16 v18, 0x0

    move-object/from16 v0, p1

    move-object v1, v15

    move/from16 v2, v16

    move/from16 v3, v17

    move-object/from16 v4, v18

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    add-int/2addr v14, v13

    goto :goto_2

    :cond_4
    invoke-virtual {v7}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v14

    int-to-float v15, v9

    move v0, v11

    int-to-float v0, v0

    move/from16 v16, v0

    const/16 v17, 0x0

    move-object/from16 v0, p1

    move-object v1, v14

    move v2, v15

    move/from16 v3, v16

    move-object/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    invoke-virtual {v7}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v7

    invoke-virtual {v7}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    add-int/2addr v7, v9

    invoke-virtual {v10}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v9

    invoke-virtual {v10}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v10

    add-int/2addr v9, v10

    invoke-virtual {v6}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v10

    invoke-virtual {v10}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v10

    sub-int/2addr v9, v10

    :goto_3
    if-ge v7, v9, :cond_5

    invoke-virtual {v8}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v10

    int-to-float v14, v7

    int-to-float v15, v11

    const/16 v16, 0x0

    move-object/from16 v0, p1

    move-object v1, v10

    move v2, v14

    move v3, v15

    move-object/from16 v4, v16

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    add-int/2addr v7, v13

    goto :goto_3

    :cond_5
    invoke-virtual {v6}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v7

    int-to-float v8, v9

    int-to-float v9, v11

    const/4 v10, 0x0

    move-object/from16 v0, p1

    move-object v1, v7

    move v2, v8

    move v3, v9

    move-object v4, v10

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawBitmap(Landroid/graphics/Bitmap;FFLandroid/graphics/Paint;)V

    invoke-virtual/range {p2 .. p2}, Lnbisdk/lf;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v7

    invoke-virtual {v6}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v6

    invoke-virtual {v6}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v6

    invoke-virtual {v5}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    add-int/2addr v5, v6

    sub-int v5, v7, v5

    const/high16 v6, 0x4080

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->density:F

    move v7, v0

    mul-float/2addr v6, v7

    float-to-int v6, v6

    new-instance v7, Landroid/graphics/Paint;

    invoke-direct {v7}, Landroid/graphics/Paint;-><init>()V

    const/high16 v8, -0x100

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setColor(I)V

    sget-object v8, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pz:F

    move v8, v0

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setTextSize(F)V

    const/4 v8, 0x1

    invoke-virtual {v7, v8}, Landroid/graphics/Paint;->setAntiAlias(Z)V

    invoke-virtual {v7}, Landroid/graphics/Paint;->getFontMetrics()Landroid/graphics/Paint$FontMetrics;

    move-result-object v8

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v9, v0

    invoke-virtual {v9}, Lcom/nbi/map/android/Pin;->getTitle()Ljava/lang/String;

    move-result-object v9

    if-eqz v9, :cond_6

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v9, v0

    invoke-virtual {v9}, Lcom/nbi/map/android/Pin;->getTitle()Ljava/lang/String;

    move-result-object v9

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pz:F

    move v10, v0

    const/4 v13, 0x1

    invoke-static {v9, v5, v10, v13}, Lnbisdk/kn;->a(Ljava/lang/String;IFZ)Ljava/lang/String;

    move-result-object v9

    int-to-float v10, v12

    int-to-float v13, v11

    iget v14, v8, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float/2addr v13, v14

    int-to-float v6, v6

    add-float/2addr v6, v13

    move-object/from16 v0, p1

    move-object v1, v9

    move v2, v10

    move v3, v6

    move-object v4, v7

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    :cond_6
    invoke-virtual {v7}, Landroid/graphics/Paint;->getFontSpacing()F

    move-result v6

    float-to-int v6, v6

    sget-object v9, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pA:F

    move v9, v0

    invoke-virtual {v7, v9}, Landroid/graphics/Paint;->setTextSize(F)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v9, v0

    invoke-virtual {v9}, Lcom/nbi/map/android/Pin;->getSubTitle()Ljava/lang/String;

    move-result-object v9

    if-eqz v9, :cond_0

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v9, v0

    invoke-virtual {v9}, Lcom/nbi/map/android/Pin;->getSubTitle()Ljava/lang/String;

    move-result-object v9

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pA:F

    move v10, v0

    const/4 v13, 0x0

    invoke-static {v9, v5, v10, v13}, Lnbisdk/kn;->a(Ljava/lang/String;IFZ)Ljava/lang/String;

    move-result-object v5

    int-to-float v9, v12

    int-to-float v10, v11

    iget v8, v8, Landroid/graphics/Paint$FontMetrics;->ascent:F

    sub-float v8, v10, v8

    int-to-float v6, v6

    add-float/2addr v6, v8

    const/high16 v8, 0x3f80

    sub-float/2addr v6, v8

    move-object/from16 v0, p1

    move-object v1, v5

    move v2, v9

    move v3, v6

    move-object v4, v7

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/graphics/Canvas;->drawText(Ljava/lang/String;FFLandroid/graphics/Paint;)V

    goto/16 :goto_1
.end method

.method public final a(Lnbisdk/lf;)V
    .locals 8

    new-instance v0, Lcom/nbi/map/geocode/ReverseGeocodeRequest;

    invoke-virtual {p1}, Lnbisdk/lf;->hZ()Lcom/nbi/common/NBIContext;

    move-result-object v1

    invoke-virtual {p0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v2

    invoke-virtual {p0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v4

    const/4 v6, 0x0

    new-instance v7, Lnbisdk/kn$1;

    invoke-direct {v7, p0, p1}, Lnbisdk/kn$1;-><init>(Lnbisdk/kn;Lnbisdk/lf;)V

    invoke-direct/range {v0 .. v7}, Lcom/nbi/map/geocode/ReverseGeocodeRequest;-><init>(Lcom/nbi/common/NBIContext;DDZLcom/nbi/map/geocode/ReverseGeocodeListener;)V

    iget-object v1, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v1}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v1

    const-string v2, "Drag to move pin"

    invoke-virtual {v1, v2}, Lcom/nbi/map/data/Place;->setName(Ljava/lang/String;)V

    iget-object v1, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    const-string v2, " "

    invoke-virtual {v1, v2}, Lcom/nbi/map/android/Pin;->setSubTitle(Ljava/lang/String;)V

    invoke-virtual {v0}, Lcom/nbi/map/geocode/ReverseGeocodeRequest;->startRequest()V

    return-void
.end method

.method public final b(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;
    .locals 9

    const/4 v8, 0x1

    new-instance v7, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v7}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {p0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    iget-object v6, p0, Lnbisdk/kn;->py:[I

    move-object v0, p0

    move-object v5, p1

    invoke-virtual/range {v0 .. v6}, Lnbisdk/kn;->a(DDLnbisdk/lf;[I)V

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/kn;->py:[I

    const/4 v2, 0x0

    aget v1, v1, v2

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v2

    sub-int/2addr v1, v2

    iget-object v2, p0, Lnbisdk/kn;->py:[I

    aget v2, v2, v8

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {v7, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    invoke-virtual {v7, v2}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v1

    invoke-virtual {v7, v1}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    invoke-virtual {v7, v0}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    :cond_0
    :goto_0
    return-object v7

    :cond_1
    invoke-virtual {v7, v8}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    invoke-virtual {v7, v8}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    goto :goto_0
.end method

.method public final b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V
    .locals 21

    const/4 v5, 0x2

    new-array v6, v5, [I

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-object v2, v6

    invoke-direct {v0, v1, v2}, Lnbisdk/kn;->a(Lnbisdk/lf;[I)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v5, v0

    invoke-virtual {v5}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v7

    invoke-virtual {v7}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v8

    const/4 v5, 0x0

    move v0, v5

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lnbisdk/kn;->pC:Z

    invoke-virtual/range {p1 .. p1}, Lnbisdk/lf;->ia()Lnbisdk/lf;

    move-result-object v5

    invoke-virtual {v5}, Lnbisdk/lf;->al()Lnbisdk/no;

    move-result-object v5

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/au;->xq:I

    move v9, v0

    const/4 v10, 0x0

    aget v10, v6, v10

    const/4 v11, 0x1

    aget v11, v6, v11

    sub-int/2addr v11, v8

    invoke-interface {v5, v9, v10, v11}, Lnbisdk/no;->e(III)Lcom/nbi/map/data/Rectangle;

    move-result-object v5

    if-eqz v5, :cond_1

    move-object/from16 v0, p2

    move-object v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->set(Lcom/nbi/map/data/Rectangle;)V

    const/4 v5, 0x0

    aget v5, v6, v5

    move v0, v5

    move-object/from16 v1, p0

    iput v0, v1, Lnbisdk/kn;->pD:I

    const/4 v5, 0x1

    aget v5, v6, v5

    sub-int/2addr v5, v8

    move v0, v5

    move-object/from16 v1, p0

    iput v0, v1, Lnbisdk/kn;->pE:I

    const/4 v5, 0x1

    move v0, v5

    move-object/from16 v1, p0

    iput-boolean v0, v1, Lnbisdk/kn;->pC:Z

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual/range {p1 .. p1}, Lnbisdk/lf;->hZ()Lcom/nbi/common/NBIContext;

    move-result-object v5

    invoke-virtual {v5}, Lcom/nbi/common/NBIContext;->getInternalObject()Ljava/lang/Object;

    move-result-object v5

    check-cast v5, Lnbisdk/bl;

    invoke-virtual {v5}, Lnbisdk/bl;->jw()Landroid/content/Context;

    move-result-object v5

    invoke-virtual/range {p1 .. p1}, Lnbisdk/lf;->ib()Lcom/nbi/map/data/Rectangle;

    move-result-object v9

    const/4 v10, 0x0

    invoke-static {v10}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v10

    const/4 v11, 0x2

    invoke-static {v11}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v11

    const/4 v12, 0x3

    invoke-static {v12}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v12

    const/4 v13, 0x1

    invoke-static {v13}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v13

    invoke-virtual {v9}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v14

    invoke-virtual {v11}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v15

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v15

    invoke-virtual {v10}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v16

    invoke-virtual/range {v16 .. v16}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v16

    add-int v15, v15, v16

    sub-int/2addr v14, v15

    move-object/from16 v0, p0

    move-object v1, v5

    invoke-direct {v0, v1}, Lnbisdk/kn;->f(Landroid/content/Context;)V

    new-instance v15, Ljava/lang/String;

    const-string v16, "123"

    invoke-direct/range {v15 .. v16}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    new-instance v16, Ljava/lang/String;

    const-string v17, "456"

    invoke-direct/range {v16 .. v17}, Ljava/lang/String;-><init>(Ljava/lang/String;)V

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nbi/map/android/Pin;->getTitle()Ljava/lang/String;

    move-result-object v17

    if-eqz v17, :cond_2

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object v15, v0

    invoke-virtual {v15}, Lcom/nbi/map/android/Pin;->getTitle()Ljava/lang/String;

    move-result-object v15

    :cond_2
    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object/from16 v17, v0

    invoke-virtual/range {v17 .. v17}, Lcom/nbi/map/android/Pin;->getSubTitle()Ljava/lang/String;

    move-result-object v17

    if-eqz v17, :cond_3

    move-object/from16 v0, p0

    iget-object v0, v0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    move-object/from16 v16, v0

    invoke-virtual/range {v16 .. v16}, Lcom/nbi/map/android/Pin;->getSubTitle()Ljava/lang/String;

    move-result-object v16

    :cond_3
    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pz:F

    move/from16 v17, v0

    const/16 v18, 0x1

    move-object v0, v15

    move v1, v14

    move/from16 v2, v17

    move/from16 v3, v18

    invoke-static {v0, v1, v2, v3}, Lnbisdk/kn;->a(Ljava/lang/String;IFZ)Ljava/lang/String;

    move-result-object v15

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pA:F

    move/from16 v17, v0

    const/16 v18, 0x0

    move-object/from16 v0, v16

    move v1, v14

    move/from16 v2, v17

    move/from16 v3, v18

    invoke-static {v0, v1, v2, v3}, Lnbisdk/kn;->a(Ljava/lang/String;IFZ)Ljava/lang/String;

    move-result-object v14

    const/16 v16, 0x2

    move/from16 v0, v16

    new-array v0, v0, [I

    move-object/from16 v16, v0

    new-instance v17, Landroid/graphics/Rect;

    invoke-direct/range {v17 .. v17}, Landroid/graphics/Rect;-><init>()V

    invoke-virtual {v15}, Ljava/lang/String;->length()I

    move-result v18

    if-nez v18, :cond_4

    const-string v15, "..."

    :cond_4
    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v18

    if-nez v18, :cond_5

    const-string v14, "..."

    :cond_5
    move-object/from16 v0, p0

    move-object v1, v5

    invoke-direct {v0, v1}, Lnbisdk/kn;->f(Landroid/content/Context;)V

    new-instance v18, Landroid/widget/TextView;

    move-object/from16 v0, v18

    move-object v1, v5

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    invoke-virtual/range {v18 .. v18}, Landroid/widget/TextView;->getPaint()Landroid/text/TextPaint;

    move-result-object v5

    sget-object v18, Landroid/graphics/Typeface;->DEFAULT_BOLD:Landroid/graphics/Typeface;

    move-object v0, v5

    move-object/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pz:F

    move/from16 v18, v0

    move-object v0, v5

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setTextSize(F)V

    const/16 v18, 0x1

    move-object v0, v5

    move/from16 v1, v18

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setAntiAlias(Z)V

    const/16 v18, 0x0

    invoke-virtual {v15}, Ljava/lang/String;->length()I

    move-result v19

    move-object v0, v5

    move-object v1, v15

    move/from16 v2, v18

    move/from16 v3, v19

    move-object/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/TextPaint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    invoke-virtual/range {v17 .. v17}, Landroid/graphics/Rect;->width()I

    move-result v15

    invoke-virtual/range {v17 .. v17}, Landroid/graphics/Rect;->height()I

    move-result v18

    add-int/lit8 v18, v18, 0x0

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pB:I

    move/from16 v19, v0

    add-int v18, v18, v19

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pA:F

    move/from16 v19, v0

    move-object v0, v5

    move/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setTextSize(F)V

    sget-object v19, Landroid/graphics/Typeface;->DEFAULT:Landroid/graphics/Typeface;

    move-object v0, v5

    move-object/from16 v1, v19

    invoke-virtual {v0, v1}, Landroid/text/TextPaint;->setTypeface(Landroid/graphics/Typeface;)Landroid/graphics/Typeface;

    const/16 v19, 0x0

    invoke-virtual {v14}, Ljava/lang/String;->length()I

    move-result v20

    move-object v0, v5

    move-object v1, v14

    move/from16 v2, v19

    move/from16 v3, v20

    move-object/from16 v4, v17

    invoke-virtual {v0, v1, v2, v3, v4}, Landroid/text/TextPaint;->getTextBounds(Ljava/lang/String;IILandroid/graphics/Rect;)V

    invoke-virtual/range {v17 .. v17}, Landroid/graphics/Rect;->width()I

    move-result v5

    invoke-virtual/range {v17 .. v17}, Landroid/graphics/Rect;->height()I

    move-result v14

    add-int v14, v14, v18

    move-object/from16 v0, p0

    iget v0, v0, Lnbisdk/kn;->pB:I

    move/from16 v17, v0

    add-int v14, v14, v17

    invoke-static {v15, v5}, Ljava/lang/Math;->max(II)I

    move-result v5

    add-int/lit8 v5, v5, 0x0

    const/4 v15, 0x0

    invoke-static {v15}, Lnbisdk/en;->bj(I)Lcom/nbi/map/android/PinImage;

    move-result-object v15

    invoke-virtual {v15}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v15

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v15

    invoke-static {v15, v14}, Ljava/lang/Math;->max(II)I

    move-result v14

    const/4 v15, 0x0

    aput v5, v16, v15

    const/4 v5, 0x1

    aput v14, v16, v5

    const/4 v5, 0x0

    aget v5, v16, v5

    const/4 v14, 0x1

    aget v14, v6, v14

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v15

    invoke-virtual {v15}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v15

    sub-int/2addr v14, v15

    sub-int v8, v14, v8

    const/4 v14, 0x0

    aget v14, v6, v14

    div-int/lit8 v15, v5, 0x2

    sub-int/2addr v14, v15

    add-int/2addr v5, v14

    invoke-virtual {v11}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v11

    invoke-virtual {v11}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v11

    add-int/2addr v5, v11

    const/4 v11, 0x0

    aget v11, v6, v11

    invoke-virtual {v7}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v7

    add-int/2addr v7, v11

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v11

    invoke-virtual {v11}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v11

    div-int/lit8 v11, v11, 0x2

    sub-int/2addr v7, v11

    invoke-virtual {v13}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v11

    invoke-virtual {v11}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v11

    move v13, v7

    :goto_1
    if-le v13, v14, :cond_6

    sub-int/2addr v13, v11

    goto :goto_1

    :cond_6
    invoke-virtual {v10}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v14

    invoke-virtual {v14}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v14

    sub-int/2addr v13, v14

    move-object/from16 v0, p2

    move v1, v13

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v13

    invoke-virtual {v13}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v13

    add-int/2addr v7, v13

    :goto_2
    if-ge v7, v5, :cond_7

    add-int/2addr v7, v11

    goto :goto_2

    :cond_7
    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v5

    sub-int v5, v7, v5

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    move-object/from16 v0, p2

    move v1, v8

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    const/4 v5, 0x1

    aget v5, v16, v5

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    invoke-virtual {v10}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v5

    invoke-virtual {v5}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v5

    invoke-virtual {v12}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v7

    invoke-virtual {v7}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v7

    div-int/lit8 v7, v7, 0x2

    add-int/2addr v5, v7

    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v7

    if-gez v7, :cond_9

    const/4 v7, 0x0

    aget v7, v6, v7

    sub-int/2addr v7, v5

    if-gtz v7, :cond_8

    const/4 v7, 0x0

    aget v6, v6, v7

    sub-int v5, v6, v5

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    goto/16 :goto_0

    :cond_8
    const/4 v5, 0x0

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    goto/16 :goto_0

    :cond_9
    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v7

    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v8

    add-int/2addr v7, v8

    invoke-virtual {v9}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v8

    if-le v7, v8, :cond_0

    const/4 v7, 0x0

    aget v7, v6, v7

    add-int/2addr v7, v5

    invoke-virtual {v9}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v8

    if-lt v7, v8, :cond_a

    const/4 v7, 0x0

    aget v6, v6, v7

    add-int/2addr v5, v6

    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v6

    sub-int/2addr v5, v6

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    goto/16 :goto_0

    :cond_a
    invoke-virtual {v9}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v5

    invoke-virtual/range {p2 .. p2}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v6

    sub-int/2addr v5, v6

    move-object/from16 v0, p2

    move v1, v5

    invoke-virtual {v0, v1}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    goto/16 :goto_0
.end method

.method public final c(Lnbisdk/lf;)Lcom/nbi/map/data/Rectangle;
    .locals 9

    new-instance v7, Lcom/nbi/map/data/Rectangle;

    invoke-direct {v7}, Lcom/nbi/map/data/Rectangle;-><init>()V

    invoke-virtual {p0, p1, v7}, Lnbisdk/kn;->b(Lnbisdk/lf;Lcom/nbi/map/data/Rectangle;)V

    invoke-virtual {p1}, Lnbisdk/lf;->ai()Lnbisdk/kr;

    move-result-object v8

    invoke-virtual {p0}, Lnbisdk/kn;->getLatitude()D

    move-result-wide v1

    invoke-virtual {p0}, Lnbisdk/kn;->getLongitude()D

    move-result-wide v3

    iget-object v6, p0, Lnbisdk/kn;->py:[I

    move-object v0, p0

    move-object v5, p1

    invoke-virtual/range {v0 .. v6}, Lnbisdk/kn;->a(DDLnbisdk/lf;[I)V

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPinImage()Lcom/nbi/map/android/PinImage;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v1, p0, Lnbisdk/kn;->py:[I

    const/4 v2, 0x0

    aget v1, v1, v2

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getTipX()I

    move-result v2

    sub-int/2addr v1, v2

    iget-object v2, p0, Lnbisdk/kn;->py:[I

    const/4 v3, 0x1

    aget v2, v2, v3

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getTipY()I

    move-result v3

    sub-int/2addr v2, v3

    invoke-virtual {v8, v1, v2}, Lnbisdk/kr;->c(II)Z

    move-result v3

    if-eqz v3, :cond_0

    invoke-virtual {v0}, Lcom/nbi/map/android/PinImage;->getImage()Landroid/graphics/Bitmap;

    move-result-object v0

    if-eqz v0, :cond_0

    new-instance v3, Landroid/graphics/Rect;

    invoke-direct {v3}, Landroid/graphics/Rect;-><init>()V

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    add-int/2addr v4, v1

    invoke-virtual {v0}, Landroid/graphics/Bitmap;->getHeight()I

    move-result v0

    add-int/2addr v0, v2

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v5

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getWidth()I

    move-result v6

    add-int/2addr v5, v6

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v6

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getHeight()I

    move-result v8

    add-int/2addr v6, v8

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getLeft()I

    move-result v8

    invoke-static {v8, v1}, Ljava/lang/Math;->min(II)I

    move-result v1

    iput v1, v3, Landroid/graphics/Rect;->left:I

    invoke-virtual {v7}, Lcom/nbi/map/data/Rectangle;->getTop()I

    move-result v1

    invoke-static {v1, v2}, Ljava/lang/Math;->min(II)I

    move-result v1

    iput v1, v3, Landroid/graphics/Rect;->top:I

    invoke-static {v4, v5}, Ljava/lang/Math;->max(II)I

    move-result v1

    iput v1, v3, Landroid/graphics/Rect;->right:I

    invoke-static {v0, v6}, Ljava/lang/Math;->max(II)I

    move-result v0

    iput v0, v3, Landroid/graphics/Rect;->bottom:I

    iget v0, v3, Landroid/graphics/Rect;->left:I

    invoke-virtual {v7, v0}, Lcom/nbi/map/data/Rectangle;->setLeft(I)V

    iget v0, v3, Landroid/graphics/Rect;->top:I

    invoke-virtual {v7, v0}, Lcom/nbi/map/data/Rectangle;->setTop(I)V

    invoke-virtual {v3}, Landroid/graphics/Rect;->width()I

    move-result v0

    invoke-virtual {v7, v0}, Lcom/nbi/map/data/Rectangle;->setWidth(I)V

    invoke-virtual {v3}, Landroid/graphics/Rect;->height()I

    move-result v0

    invoke-virtual {v7, v0}, Lcom/nbi/map/data/Rectangle;->setHeight(I)V

    :cond_0
    return-object v7
.end method

.method public final getLatitude()D
    .locals 2

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/MapLocation;->getLatitude()D

    move-result-wide v0

    :goto_0
    return-wide v0

    :cond_0
    const-wide v0, -0x3f70c80000000000L

    goto :goto_0
.end method

.method public final getLongitude()D
    .locals 2

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/MapLocation;->getLongitude()D

    move-result-wide v0

    :goto_0
    return-wide v0

    :cond_0
    const-wide v0, -0x3f70c80000000000L

    goto :goto_0
.end method

.method public final setLatitude(D)V
    .locals 1

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/nbi/map/data/MapLocation;->setLatitude(D)V

    :cond_0
    return-void
.end method

.method public final setLongitude(D)V
    .locals 1

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0}, Lcom/nbi/map/android/Pin;->getPlace()Lcom/nbi/map/data/Place;

    move-result-object v0

    invoke-virtual {v0}, Lcom/nbi/map/data/Place;->getLocation()Lcom/nbi/map/data/MapLocation;

    move-result-object v0

    invoke-virtual {v0, p1, p2}, Lcom/nbi/map/data/MapLocation;->setLongitude(D)V

    :cond_0
    return-void
.end method

.method public final setPinImage(Lcom/nbi/map/android/PinImage;)Z
    .locals 1

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/kn;->px:Lcom/nbi/map/android/Pin;

    invoke-virtual {v0, p1}, Lcom/nbi/map/android/Pin;->setPinImage(Lcom/nbi/map/android/PinImage;)Z

    move-result v0

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method
